package com.itheima_11;

public class Demo {
    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.setAge(10);
        cat.setName("加菲猫");
        System.out.println(cat.getName() + "," + cat.getAge());
        cat.catchMouse();

        Dog dog = new Dog("旺财", 13);
        System.out.println(dog.getName() + "," + dog.getAge());
        dog.lookDoor();
    }
}
